package com.yinhai.httpclient;

import java.io.File;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.client.CookieStore;


public class HttpRequestParam {

	public HttpRequestParam(String remoteURL){
		this.remoteURL = remoteURL;
	}

	protected int connectionMode = HttpApplicationContext.HTTPCLIENT_CONNECTION_TYPE;
	
	protected String remoteURL;
	
	protected List<? extends NameValuePair> postParam;
	
	/**
	 * 返回编码方式 默认UTF-8
	 */
	protected String contentCharset;
	
	/**
	 * 请求编码方式 默认UTF-8
	 */
	protected String elemnetCharset;
	
	protected String method = "POST";
	
	protected Object cookieStore;
	
	protected File[] files;
	
	public static final String POST = "POST";
	
	public static final String GET = "GET";
	
	public static final String BINARY = "BINARY";
	
	public static final String UPLOAD = "UPLAOD";
	
	public String getRemoteURL() {
		return remoteURL;
	}

	public void setRemoteURL(String remoteURL) {
		this.remoteURL = remoteURL;
	}

	public List<? extends NameValuePair> getPostParam() {
		return postParam;
	}

	public void setPostParam(List<? extends NameValuePair> postParam) {
		this.postParam = postParam;
	}

	public String getContentCharset() {
		return contentCharset;
	}

	public void setContentCharset(String contentCharset) {
		this.contentCharset = contentCharset;
	}

	public String getElemnetCharset() {
		return elemnetCharset;
	}

	public void setElemnetCharset(String elemnetCharset) {
		this.elemnetCharset = elemnetCharset;
	}
	
	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}
	
	public Object getCookieStore() {
		return cookieStore;
	}

	public void setCookieStore(Object cookieStore) {
		this.cookieStore = cookieStore;
	}
	
	public File[] getFiles() {
		return files;
	}

	public void setFiles(File[] files) {
		this.files = files;
	}

	public int getConnectionMode() {
		return connectionMode;
	}

	public void setConnectionMode(int connectionMode) {
		this.connectionMode = connectionMode;
	}
}
